
#ifndef __TESTAPP_H__
#define __TESTAPP_H__

#include "App/LaborApp.h"
#include <stdio.h>
#include "LaborCore.h"
#include "Renderer\LaborRenderSystem.h"
#include "Renderer\LaborTexture.h"
#include <d3d10.h>
#include <d3dx10.h>
#include <string>

#include <windows.h>
#include "Common\LaborCommonFunction.h"
//#ifdef _WIN32
//int g_DFCP = CP_ACP;
//#else
//int g_DFCP = 0;
//
//#endif

using namespace std;
using namespace Labor;

class  CTestApp : public ILApp
{
	//--------------------------------------------------------------------------------------
	// Member Variables
	//--------------------------------------------------------------------------------------
	HINSTANCE               m_hInst;
	HWND                    m_hWnd;
	CLRenderSystem      *   m_pRenderSystem;
	CLTexture          *    m_pTexture;
	wstring                 m_strShaderPath;
public:
	CTestApp();
	~CTestApp();
public :
	bool      init( const char* appModuleFile );
	bool      uinit();

public:
	//virtual function . sub-class can override or overload this function

	virtual void            onEvent(MSG& msg);
	virtual bool            updateFrame(int passedTime);

	HRESULT InitWindow( HINSTANCE hInstance, int nCmdShow );
	void initRenderData();
	void Render();

};
#endif